package com.jilefojing.service;

import java.util.List;

import com.jilefojing.beans.pojos.Dictionary;
import com.jilefojing.beans.pojos.enhanced.EnhancedDictionary;
import com.jilefojing.context.beans.vo.UserContext;
import com.jilefojing.service.base.IBaseService;

/**
 * 
 * @author jgshun
 * 
 */
public interface IDictionaryService extends IBaseService<Dictionary> {

	Dictionary getByNodeName(String nodeName);

	EnhancedDictionary getEnhancedDictionary(Long id, UserContext userContext);

	List<EnhancedDictionary> getEnhancedDictionaries(List<Long> ids, UserContext userContext);

	EnhancedDictionary getEnhancedDictionaryByNodeName(String nodeName, UserContext userContext);

	// List<EnhancedDictionary> getEnhancedDictionariesByNodeName(String
	// nodeName,
	// UserContext userContext);

	List<EnhancedDictionary> conventDictionariesToEnhancedDictionaries(List<Dictionary> dictionaries);

	void deleteByNodeName(String nodeName, UserContext userContext);
}
